﻿/*----------------------------------------------------------------
 * 
 * 版权所有：Copyright (C) 2013
 * 
 * 文件名：PPartitionVM.cs
 * 文件功能描述：
 * 
 * 
 * 作 者：zhangq
 * 邮 箱：ifunnyface@outlook.com
 * 日 期：2013-01-22 13:25:03
 * 
 * 
 * 修改标识： Author
 * 修改描述： 相关描述
 * 
 * ---------------------------------------------------------------- */

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using DomainModel;

namespace WebPlatform.Areas.CPP.Models
{

    /// <summary>
    /// 
    /// </summary>
    public class PPartitionVM
    {

        /// <summary>
        /// 
        /// </summary>
        public PPartitionVM()
        {
            // TODO:
        }


        /// <summary>
        /// 类别Id
        /// </summary>
        public string PartitionId { get; set; }


        /// <summary>
        /// 类别名
        /// </summary>
        [Required(ErrorMessage = "请填写类别名称")]
        public string Name { get; set; }


        /// <summary>
        /// 类别描述
        /// </summary>
        public string Description { get; set; }


        /// <summary>
        /// 父类别Id
        /// </summary>
        public string ParentId { get; set; }


        /// <summary>
        /// 父类别Id
        /// </summary>
        public string ParentName { get; set; }


        /// <summary>
        /// 是否启用 0=禁用，1=启用
        /// </summary>
        public int Enabled { get; set; }


        /// <summary>
        /// 是否启用 0=禁用，1=启用
        /// </summary>
        public bool BEnabled { get; set; }


        /// <summary>
        /// 排序号
        /// </summary>
        public int SortNumber { get; set; }



        /// <summary>
        /// 层级
        /// </summary>
        public int Level { get; set; }


        /// <summary>
        /// 是否有子 0=否、1=是
        /// </summary>
        public int HasChildren { get; set; }


        /// <summary>
        /// 是否主页显示
        /// </summary>
        public int ShowInt { get; set; }


        /// <summary>
        /// 是否主页显示
        /// </summary>
        public bool BShowInt { get; set; }


        /// <summary>
        /// 
        /// </summary>
        public IList<PPartitionVM> children { get; set; }


        /// <summary>
        /// 子集分类
        /// </summary>
        public IList<ProductPartitionInfo> Children { get; set; }



        public ProductPartitionInfo ProductPartition { get; set; }
        //public IEnumerable<SelectListItem> Roots { get; set; }

    }

}